//
//  UIView+Additon.m
//  ApplyFor
//
//  Created by 李佳楠 on 2016/12/20.
//  Copyright © 2016年 李佳楠. All rights reserved.
//

#import "UIView+Additon.h"

@implementation UIView (Additon)
-(CGFloat)left
{
    return self.frame.origin.x;
}
-(CGFloat)right
{
    return self.frame.origin.x + self.frame.size.width;
}
-(CGFloat)width
{
    return self.frame.size.width;
}
-(CGFloat)height
{
    return self.frame.size.height;
}
-(CGFloat)top
{
    return self.frame.origin.y;
}
-(CGFloat)bottom
{
    return self.frame.origin.y + self.frame.size.height;
}

@end
